package common.itemhandling;

import java.io.Serializable;
/**
 * @author Julius Ollesch
 * 
 */
public class Kategorie implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1125968564790841840L;
	private int id;

	private int elternKategorie;

	private String name;

	public Kategorie(String name, int elternKategorie) {
		super();
		this.name = name;
		this.elternKategorie = elternKategorie;
		this.id = (name + elternKategorie + System.currentTimeMillis())
				.hashCode();
	}

	public int getElternKategorie() {
		return elternKategorie;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setElternKategorie(int elternKategorie) {
		this.elternKategorie = elternKategorie;
	}

	public void setName(String name) {
		this.name = name;
	}

}
